package org.dromara.system.domain.bo;

import org.dromara.system.domain.PayType;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 支付平台业务对象 pay_type
 *
 * @author Gavino
 * @date 2024-10-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PayType.class, reverseConvertGenerate = false)
public class PayTypeBo extends BaseEntity {

    /**
     * 支付平台ID
     */
    private Long typeId;

    /**
     * 平台名称
     */
    @NotBlank(message = "平台名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 平台标识
     */
    @NotBlank(message = "平台标识不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 平台配置
     */
    @NotBlank(message = "平台配置不能为空", groups = { AddGroup.class, EditGroup.class })
    private String config;

    /**
     * 状态
     */
    @NotNull(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 公共可见
     */
    private Integer common;

}
